/**
 *
 */
package messaage;

/**
 * @author mariak
 *
 */
public class AddFriendMsg extends Message {

	protected String nameOfFriend;

	/**
	 *
	 */
	public AddFriendMsg(String username, String friendName) {
		this.username = username;
		this.nameOfFriend = friendName;
	}

	/**
	 * @return the nameOfFriend
	 */
	public String getNameOfFriend() {
		return nameOfFriend;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see messaage.Message#toString()
	 */
	@Override
	public String toString() {
		String msg = "AddFriend\n" + "Friend:" + this.nameOfFriend + "\n" + '\0';

		return msg;
	}

}
